Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
2151 / 2151
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3use Webkul\Sales\Models\Order;
4
5return [
6    /**
7     * General.
8     */
9    [
10        'key'  => 'general',
11        'name' => 'admin::app.configuration.index.general.title',
12        'info' => 'admin::app.configuration.index.general.info',
13        'sort' => 1,
14    ], [
15        'key'  => 'general.general',
16        'name' => 'admin::app.configuration.index.general.general.title',
17        'info' => 'admin::app.configuration.index.general.general.info',
18        'icon' => 'settings/store.svg',
19        'sort' => 1,
20    ], [
21        'key'    => 'general.general.locale_options',
22        'name'   => 'admin::app.configuration.index.general.general.unit-options.title',
23        'info'   => 'admin::app.configuration.index.general.general.unit-options.title-info',
24        'sort'   => 1,
25        'fields' => [
26            [
27                'name'          => 'weight_unit',
28                'title'         => 'admin::app.configuration.index.general.general.unit-options.weight-unit',
29                'type'          => 'select',
30                'default'       => 'kgs',
31                'options'       => [
32                    [
33                        'title' => 'lbs',
34                        'value' => 'lbs',
35                    ], [
36                        'title' => 'kgs',
37                        'value' => 'kgs',
38                    ],
39                ],
40                'channel_based' => true,
41            ],
42        ],
43    ], [
44        'key'    => 'general.general.breadcrumbs',
45        'name'   => 'admin::app.configuration.index.general.general.breadcrumbs.title',
46        'info'   => 'admin::app.configuration.index.general.general.breadcrumbs.title-info',
47        'sort'   => 2,
48        'fields' => [
49            [
50                'name'    => 'shop',
51                'title'   => 'admin::app.configuration.index.general.general.breadcrumbs.shop',
52                'type'    => 'boolean',
53                'default' => true,
54            ],
55        ],
56    ], [
57        'key'  => 'general.content',
58        'name' => 'admin::app.configuration.index.general.content.title',
59        'info' => 'admin::app.configuration.index.general.content.info',
60        'icon' => 'settings/store.svg',
61        'sort' => 2,
62    ], [
63        'key'    => 'general.content.header_offer',
64        'name'   => 'admin::app.configuration.index.general.content.header-offer.title',
65        'info'   => 'admin::app.configuration.index.general.content.header-offer.title-info',
66        'sort'   => 1,
67        'fields' => [
68            [
69                'name'    => 'title',
70                'title'   => 'admin::app.configuration.index.general.content.header-offer.offer-title',
71                'type'    => 'text',
72                'default' => 'Get UPTO 40% OFF on your 1st order',
73            ], [
74                'name'    => 'redirection_title',
75                'title'   => 'admin::app.configuration.index.general.content.header-offer.redirection-title',
76                'type'    => 'text',
77                'default' => 'SHOP NOW',
78            ], [
79                'name'    => 'redirection_link',
80                'title'   => 'admin::app.configuration.index.general.content.header-offer.redirection-link',
81                'type'    => 'text',
82            ],
83        ],
84    ], [
85        'key'    => 'general.content.custom_scripts',
86        'name'   => 'admin::app.configuration.index.general.content.custom-scripts.title',
87        'info'   => 'admin::app.configuration.index.general.content.custom-scripts.title-info',
88        'sort'   => 2,
89        'fields' => [
90            [
91                'name'          => 'custom_css',
92                'title'         => 'admin::app.configuration.index.general.content.custom-scripts.custom-css',
93                'type'          => 'textarea',
94                'channel_based' => true,
95                'locale_based'  => false,
96            ], [
97                'name'          => 'custom_javascript',
98                'title'         => 'admin::app.configuration.index.general.content.custom-scripts.custom-javascript',
99                'type'          => 'textarea',
100                'channel_based' => true,
101                'locale_based'  => false,
102            ],
103        ],
104    ], [
105        'key'  => 'general.design',
106        'name' => 'admin::app.configuration.index.general.design.title',
107        'info' => 'admin::app.configuration.index.general.design.info',
108        'icon' => 'settings/theme.svg',
109        'sort' => 3,
110    ], [
111        'key'    => 'general.design.admin_logo',
112        'name'   => 'admin::app.configuration.index.general.design.admin-logo.title',
113        'info'   => 'admin::app.configuration.index.general.design.admin-logo.title-info',
114        'sort'   => 1,
115        'fields' => [
116            [
117                'name'          => 'logo_image',
118                'title'         => 'admin::app.configuration.index.general.design.admin-logo.logo-image',
119                'type'          => 'image',
120                'channel_based' => false,
121                'validation'    => 'mimes:bmp,jpeg,jpg,png,webp,svg',
122            ], [
123                'name'          => 'favicon',
124                'title'         => 'admin::app.configuration.index.general.design.admin-logo.favicon',
125                'type'          => 'image',
126                'channel_based' => false,
127                'validation'    => 'mimes:bmp,jpeg,jpg,png,webp,svg,ico',
128            ],
129        ],
130    ], [
131        'key'  => 'general.magic_ai',
132        'name' => 'admin::app.configuration.index.general.magic-ai.title',
133        'info' => 'admin::app.configuration.index.general.magic-ai.info',
134        'icon' => 'settings/magic-ai.svg',
135        'sort' => 3,
136    ], [
137        'key'    => 'general.magic_ai.settings',
138        'name'   => 'admin::app.configuration.index.general.magic-ai.settings.title',
139        'info'   => 'admin::app.configuration.index.general.magic-ai.settings.title-info',
140        'sort'   => 1,
141        'fields' => [
142            [
143                'name'          => 'enabled',
144                'title'         => 'admin::app.configuration.index.general.magic-ai.settings.enabled',
145                'type'          => 'boolean',
146                'channel_based' => true,
147            ], [
148                'name'          => 'api_key',
149                'title'         => 'admin::app.configuration.index.general.magic-ai.settings.api-key',
150                'type'          => 'password',
151                'channel_based' => true,
152            ], [
153                'name'          => 'organization',
154                'title'         => 'admin::app.configuration.index.general.magic-ai.settings.organization',
155                'type'          => 'text',
156                'channel_based' => true,
157            ], [
158                'name'          => 'api_domain',
159                'title'         => 'admin::app.configuration.index.general.magic-ai.settings.llm-api-domain',
160                'type'          => 'text',
161                'channel_based' => true,
162            ],
163        ],
164    ], [
165        'key'    => 'general.magic_ai.content_generation',
166        'name'   => 'admin::app.configuration.index.general.magic-ai.content-generation.title',
167        'info'   => 'admin::app.configuration.index.general.magic-ai.content-generation.title-info',
168        'sort'   => 1,
169        'fields' => [
170            [
171                'name'  => 'enabled',
172                'title' => 'admin::app.configuration.index.general.magic-ai.content-generation.enabled',
173                'type'  => 'boolean',
174            ], [
175                'name'         => 'product_short_description_prompt',
176                'title'        => 'admin::app.configuration.index.general.magic-ai.content-generation.product-short-description-prompt',
177                'type'         => 'textarea',
178                'locale_based' => true,
179            ], [
180                'name'         => 'product_description_prompt',
181                'title'        => 'admin::app.configuration.index.general.magic-ai.content-generation.product-description-prompt',
182                'type'         => 'textarea',
183                'locale_based' => true,
184            ], [
185                'name'         => 'category_description_prompt',
186                'title'        => 'admin::app.configuration.index.general.magic-ai.content-generation.category-description-prompt',
187                'type'         => 'textarea',
188                'locale_based' => true,
189            ], [
190                'name'         => 'cms_page_content_prompt',
191                'title'        => 'admin::app.configuration.index.general.magic-ai.content-generation.cms-page-content-prompt',
192                'type'         => 'textarea',
193                'locale_based' => true,
194            ],
195        ],
196    ], [
197        'key'    => 'general.magic_ai.image_generation',
198        'name'   => 'admin::app.configuration.index.general.magic-ai.image-generation.title',
199        'info'   => 'admin::app.configuration.index.general.magic-ai.image-generation.title-info',
200        'sort'   => 1,
201        'fields' => [
202            [
203                'name'          => 'enabled',
204                'title'         => 'admin::app.configuration.index.general.magic-ai.image-generation.enabled',
205                'type'          => 'boolean',
206                'channel_based' => true,
207            ],
208        ],
209    ], [
210        'key'    => 'general.magic_ai.review_translation',
211        'name'   => 'admin::app.configuration.index.general.magic-ai.review-translation.title',
212        'info'   => 'admin::app.configuration.index.general.magic-ai.review-translation.title-info',
213        'sort'   => 1,
214        'fields' => [
215            [
216                'name'          => 'enabled',
217                'title'         => 'admin::app.configuration.index.general.magic-ai.review-translation.enabled',
218                'type'          => 'boolean',
219                'channel_based' => true,
220            ], [
221                'name'          => 'model',
222                'title'         => 'admin::app.configuration.index.general.magic-ai.review-translation.model',
223                'type'          => 'select',
224                'channel_based' => true,
225                'options'       => [
226                    [
227                        'title' => 'admin::app.configuration.index.general.magic-ai.review-translation.gpt-3-5-turbo',
228                        'value' => 'gpt-3.5-turbo',
229                    ], [
230                        'title' => 'admin::app.configuration.index.general.magic-ai.review-translation.llama2',
231                        'value' => 'llama2',
232                    ], [
233                        'title' => 'admin::app.configuration.index.general.magic-ai.review-translation.mistral',
234                        'value' => 'mistral',
235                    ], [
236                        'title' => 'admin::app.configuration.index.general.magic-ai.review-translation.dolphin-phi',
237                        'value' => 'dolphin-phi',
238                    ], [
239                        'title' => 'admin::app.configuration.index.general.magic-ai.review-translation.phi',
240                        'value' => 'phi',
241                    ], [
242                        'title' => 'admin::app.configuration.index.general.magic-ai.review-translation.starling-lm',
243                        'value' => 'starling-lm',
244                    ], [
245                        'title' => 'admin::app.configuration.index.general.magic-ai.review-translation.llama2-uncensored',
246                        'value' => 'llama2-uncensored',
247                    ], [
248                        'title' => 'admin::app.configuration.index.general.magic-ai.review-translation.llama2:13b',
249                        'value' => 'llama2:13b',
250                    ], [
251                        'title' => 'admin::app.configuration.index.general.magic-ai.review-translation.llama2:70b',
252                        'value' => 'llama2:70b',
253                    ], [
254                        'title' => 'admin::app.configuration.index.general.magic-ai.review-translation.orca-mini',
255                        'value' => 'orca-mini',
256                    ], [
257                        'title' => 'admin::app.configuration.index.general.magic-ai.review-translation.vicuna',
258                        'value' => 'vicuna',
259                    ], [
260                        'title' => 'admin::app.configuration.index.general.magic-ai.review-translation.llava',
261                        'value' => 'llava',
262                    ],
263                ],
264            ],
265        ],
266    ], [
267        'key'    => 'general.magic_ai.checkout_message',
268        'name'   => 'admin::app.configuration.index.general.magic-ai.checkout-message.title',
269        'info'   => 'admin::app.configuration.index.general.magic-ai.checkout-message.title-info',
270        'sort'   => 1,
271        'fields' => [
272            [
273                'name'          => 'enabled',
274                'title'         => 'admin::app.configuration.index.general.magic-ai.checkout-message.enabled',
275                'type'          => 'boolean',
276                'channel_based' => true,
277            ], [
278                'name'          => 'model',
279                'title'         => 'admin::app.configuration.index.general.magic-ai.checkout-message.model',
280                'type'          => 'select',
281                'channel_based' => true,
282                'options'       => [
283                    [
284                        'title' => 'admin::app.configuration.index.general.magic-ai.checkout-message.gpt-3-5-turbo',
285                        'value' => 'open-ai-gpt-3.5-turbo',
286                    ], [
287                        'title' => 'admin::app.configuration.index.general.magic-ai.checkout-message.llama2',
288                        'value' => 'llama2',
289                    ], [
290                        'title' => 'admin::app.configuration.index.general.magic-ai.checkout-message.mistral',
291                        'value' => 'mistral',
292                    ], [
293                        'title' => 'admin::app.configuration.index.general.magic-ai.checkout-message.dolphin-phi',
294                        'value' => 'dolphin-phi',
295                    ], [
296                        'title' => 'admin::app.configuration.index.general.magic-ai.checkout-message.phi',
297                        'value' => 'phi',
298                    ], [
299                        'title' => 'admin::app.configuration.index.general.magic-ai.checkout-message.starling-lm',
300                        'value' => 'starling-lm',
301                    ], [
302                        'title' => 'admin::app.configuration.index.general.magic-ai.checkout-message.llama2-uncensored',
303                        'value' => 'llama2-uncensored',
304                    ], [
305                        'title' => 'admin::app.configuration.index.general.magic-ai.checkout-message.llama2:13b',
306                        'value' => 'llama2:13b',
307                    ], [
308                        'title' => 'admin::app.configuration.index.general.magic-ai.checkout-message.llama2:70b',
309                        'value' => 'llama2:70b',
310                    ], [
311                        'title' => 'admin::app.configuration.index.general.magic-ai.checkout-message.orca-mini',
312                        'value' => 'orca-mini',
313                    ], [
314                        'title' => 'admin::app.configuration.index.general.magic-ai.checkout-message.vicuna',
315                        'value' => 'vicuna',
316                    ], [
317                        'title' => 'admin::app.configuration.index.general.magic-ai.checkout-message.llava',
318                        'value' => 'llava',
319                    ],
320                ],
321            ], [
322                'name'          => 'prompt',
323                'title'         => 'admin::app.configuration.index.general.magic-ai.checkout-message.prompt',
324                'type'          => 'textarea',
325                'channel_based' => true,
326                'locale_based'  => true,
327            ],
328        ],
329    ],
330
331    /**
332     * Catalog.
333     */
334    [
335        'key'  => 'catalog',
336        'name' => 'admin::app.configuration.index.catalog.title',
337        'info' => 'admin::app.configuration.index.catalog.info',
338        'sort' => 2,
339    ], [
340        'key'  => 'catalog.products',
341        'name' => 'admin::app.configuration.index.catalog.products.title',
342        'info' => 'admin::app.configuration.index.catalog.products.info',
343        'icon' => 'settings/product.svg',
344        'sort' => 1,
345    ], [
346        'key'    => 'catalog.products.settings',
347        'name'   => 'admin::app.configuration.index.catalog.products.settings.title',
348        'info'   => 'admin::app.configuration.index.catalog.products.settings.title-info',
349        'sort'   => 1,
350        'fields' => [
351            [
352                'name'          => 'compare_option',
353                'title'         => 'admin::app.configuration.index.catalog.products.settings.compare-options',
354                'type'          => 'boolean',
355                'default'       => 1,
356            ], [
357                'name'          => 'image_search',
358                'title'         => 'admin::app.configuration.index.catalog.products.settings.image-search-option',
359                'type'          => 'boolean',
360                'default'       => 1,
361            ],
362        ],
363    ], [
364        'key'    => 'catalog.products.search',
365        'name'   => 'admin::app.configuration.index.catalog.products.search.title',
366        'info'   => 'admin::app.configuration.index.catalog.products.search.title-info',
367        'sort'   => 1,
368        'fields' => [
369            [
370                'name'    => 'engine',
371                'title'   => 'admin::app.configuration.index.catalog.products.search.search-engine',
372                'type'    => 'select',
373                'default' => 'database',
374                'options' => [
375                    [
376                        'title' => 'admin::app.configuration.index.catalog.products.search.database',
377                        'value' => 'database',
378                    ], [
379                        'title' => 'admin::app.configuration.index.catalog.products.search.elastic',
380                        'value' => 'elastic',
381                    ],
382                ],
383            ], [
384                'name'    => 'admin_mode',
385                'title'   => 'admin::app.configuration.index.catalog.products.search.admin-mode',
386                'info'    => 'admin::app.configuration.index.catalog.products.search.admin-mode-info',
387                'type'    => 'select',
388                'default' => 'database',
389                'options' => [
390                    [
391                        'title' => 'admin::app.configuration.index.catalog.products.search.database',
392                        'value' => 'database',
393                    ], [
394                        'title' => 'admin::app.configuration.index.catalog.products.search.elastic',
395                        'value' => 'elastic',
396                    ],
397                ],
398            ], [
399                'name'    => 'storefront_mode',
400                'title'   => 'admin::app.configuration.index.catalog.products.search.storefront-mode',
401                'info'    => 'admin::app.configuration.index.catalog.products.search.storefront-mode-info',
402                'type'    => 'select',
403                'default' => 'database',
404                'options' => [
405                    [
406                        'title' => 'admin::app.configuration.index.catalog.products.search.database',
407                        'value' => 'database',
408                    ], [
409                        'title' => 'admin::app.configuration.index.catalog.products.search.elastic',
410                        'value' => 'elastic',
411                    ],
412                ],
413            ], [
414                'name'       => 'min_query_length',
415                'title'      => 'admin::app.configuration.index.catalog.products.search.min-query-length',
416                'info'       => 'admin::app.configuration.index.catalog.products.search.min-query-length-info',
417                'type'       => 'number',
418                'validation' => 'numeric',
419                'default'    => '0',
420            ], [
421                'name'       => 'max_query_length',
422                'title'      => 'admin::app.configuration.index.catalog.products.search.max-query-length',
423                'info'       => 'admin::app.configuration.index.catalog.products.search.max-query-length-info',
424                'type'       => 'number',
425                'validation' => 'numeric',
426                'default'    => '1000',
427            ],
428        ],
429    ], [
430        'key'    => 'catalog.products.product_view_page',
431        'name'   => 'admin::app.configuration.index.catalog.products.product-view-page.title',
432        'info'   => 'admin::app.configuration.index.catalog.products.product-view-page.title-info',
433        'sort'   => 2,
434        'fields' => [
435            [
436                'name'       => 'no_of_related_products',
437                'title'      => 'admin::app.configuration.index.catalog.products.product-view-page.allow-no-of-related-products',
438                'type'       => 'number',
439                'validation' => 'integer|min:0',
440            ], [
441                'name'       => 'no_of_up_sells_products',
442                'title'      => 'admin::app.configuration.index.catalog.products.product-view-page.allow-no-of-up-sells-products',
443                'type'       => 'number',
444                'validation' => 'integer|min:0',
445            ],
446        ],
447    ], [
448        'key'    => 'catalog.products.cart_view_page',
449        'name'   => 'admin::app.configuration.index.catalog.products.cart-view-page.title',
450        'info'   => 'admin::app.configuration.index.catalog.products.cart-view-page.title-info',
451        'sort'   => 3,
452        'fields' => [
453            [
454                'name'       => 'no_of_cross_sells_products',
455                'title'      => 'admin::app.configuration.index.catalog.products.cart-view-page.allow-no-of-cross-sells-products',
456                'type'       => 'number',
457                'validation' => 'integer|min:0',
458            ],
459        ],
460    ], [
461        'key'    => 'catalog.products.storefront',
462        'name'   => 'admin::app.configuration.index.catalog.products.storefront.title',
463        'info'   => 'admin::app.configuration.index.catalog.products.storefront.title-info',
464        'sort'   => 4,
465        'fields' => [
466            [
467                'name'          => 'mode',
468                'title'         => 'admin::app.configuration.index.catalog.products.storefront.default-list-mode',
469                'type'          => 'select',
470                'options'       => [
471                    [
472                        'title' => 'admin::app.configuration.index.catalog.products.storefront.grid',
473                        'value' => 'grid',
474                    ], [
475                        'title' => 'admin::app.configuration.index.catalog.products.storefront.list',
476                        'value' => 'list',
477                    ],
478                ],
479                'channel_based' => true,
480            ], [
481                'name'          => 'products_per_page',
482                'title'         => 'admin::app.configuration.index.catalog.products.storefront.products-per-page',
483                'type'          => 'text',
484                'info'          => 'admin::app.configuration.index.catalog.products.storefront.comma-separated',
485                'channel_based' => true,
486            ], [
487                'name'          => 'sort_by',
488                'title'         => 'admin::app.configuration.index.catalog.products.storefront.sort-by',
489                'type'          => 'select',
490                'options'       => [
491                    [
492                        'title' => 'admin::app.configuration.index.catalog.products.storefront.from-a-z',
493                        'value' => 'name-asc',
494                    ], [
495                        'title' => 'admin::app.configuration.index.catalog.products.storefront.from-z-a',
496                        'value' => 'name-desc',
497                    ], [
498                        'title' => 'admin::app.configuration.index.catalog.products.storefront.latest-first',
499                        'value' => 'created_at-desc',
500                    ], [
501                        'title' => 'admin::app.configuration.index.catalog.products.storefront.oldest-first',
502                        'value' => 'created_at-asc',
503                    ], [
504                        'title' => 'admin::app.configuration.index.catalog.products.storefront.cheapest-first',
505                        'value' => 'price-asc',
506                    ], [
507                        'title' => 'admin::app.configuration.index.catalog.products.storefront.expensive-first',
508                        'value' => 'price-desc',
509                    ],
510                ],
511                'channel_based' => true,
512            ], [
513                'name'  => 'buy_now_button_display',
514                'title' => 'admin::app.configuration.index.catalog.products.storefront.buy-now-button-display',
515                'type'  => 'boolean',
516            ],
517        ],
518    ], [
519        'key'    => 'catalog.products.cache_small_image',
520        'name'   => 'admin::app.configuration.index.catalog.products.small-image.title',
521        'info'   => 'admin::app.configuration.index.catalog.products.small-image.title-info',
522        'sort'   => 5,
523        'fields' => [
524            [
525                'name'       => 'width',
526                'title'      => 'admin::app.configuration.index.catalog.products.small-image.width',
527                'type'       => 'text',
528                'validation' => 'integer|min:1',
529            ], [
530                'name'       => 'height',
531                'title'      => 'admin::app.configuration.index.catalog.products.small-image.height',
532                'type'       => 'text',
533                'validation' => 'integer|min:1',
534            ], [
535                'name'       => 'url',
536                'title'      => 'admin::app.configuration.index.catalog.products.small-image.placeholder',
537                'type'       => 'image',
538                'validation' => 'mimes:bmp,jpeg,jpg,png,webp,svg',
539            ],
540        ],
541    ], [
542        'key'    => 'catalog.products.cache_medium_image',
543        'name'   => 'admin::app.configuration.index.catalog.products.medium-image.title',
544        'info'   => 'admin::app.configuration.index.catalog.products.medium-image.title-info',
545        'sort'   => 6,
546        'fields' => [
547            [
548                'name'       => 'width',
549                'title'      => 'admin::app.configuration.index.catalog.products.medium-image.width',
550                'type'       => 'text',
551                'validation' => 'integer|min:1',
552            ], [
553                'name'       => 'height',
554                'title'      => 'admin::app.configuration.index.catalog.products.medium-image.height',
555                'type'       => 'text',
556                'validation' => 'integer|min:1',
557            ], [
558                'name'       => 'url',
559                'title'      => 'admin::app.configuration.index.catalog.products.medium-image.placeholder',
560                'type'       => 'image',
561                'validation' => 'mimes:bmp,jpeg,jpg,png,webp,svg',
562            ],
563        ],
564    ], [
565        'key'    => 'catalog.products.cache_large_image',
566        'name'   => 'admin::app.configuration.index.catalog.products.large-image.title',
567        'info'   => 'admin::app.configuration.index.catalog.products.large-image.title-info',
568        'sort'   => 7,
569        'fields' => [
570            [
571                'name'       => 'width',
572                'title'      => 'admin::app.configuration.index.catalog.products.large-image.width',
573                'type'       => 'text',
574                'validation' => 'integer|min:1',
575            ], [
576                'name'       => 'height',
577                'title'      => 'admin::app.configuration.index.catalog.products.large-image.height',
578                'type'       => 'text',
579                'validation' => 'integer|min:1',
580            ], [
581                'name'       => 'url',
582                'title'      => 'admin::app.configuration.index.catalog.products.large-image.placeholder',
583                'type'       => 'image',
584                'validation' => 'mimes:bmp,jpeg,jpg,png,webp,svg',
585            ],
586        ],
587    ], [
588        'key'    => 'catalog.products.review',
589        'name'   => 'admin::app.configuration.index.catalog.products.review.title',
590        'info'   => 'admin::app.configuration.index.catalog.products.review.title-info',
591        'sort'   => 8,
592        'fields' => [
593            [
594                'name'  => 'guest_review',
595                'title' => 'admin::app.configuration.index.catalog.products.review.allow-guest-review',
596                'type'  => 'boolean',
597            ], [
598                'name'    => 'customer_review',
599                'title'   => 'admin::app.configuration.index.catalog.products.review.allow-customer-review',
600                'type'    => 'boolean',
601                'default' => true,
602            ], [
603                'name'    => 'summary',
604                'title'   => 'admin::app.configuration.index.catalog.products.review.summary',
605                'type'    => 'select',
606                'default' => 'review_counts',
607                'options' => [
608                    [
609                        'title' => 'admin::app.configuration.index.catalog.products.review.display-star-count',
610                        'value' => 'star_counts',
611                    ], [
612                        'title' => 'admin::app.configuration.index.catalog.products.review.display-review-count',
613                        'value' => 'review_counts',
614                    ],
615                ],
616            ],
617        ],
618    ], [
619        'key'    => 'catalog.products.attribute',
620        'name'   => 'admin::app.configuration.index.catalog.products.attribute.title',
621        'info'   => 'admin::app.configuration.index.catalog.products.attribute.title-info',
622        'sort'   => 9,
623        'fields' => [
624            [
625                'name'       => 'image_attribute_upload_size',
626                'title'      => 'admin::app.configuration.index.catalog.products.attribute.image-upload-size',
627                'type'       => 'text',
628                'validation' => 'numeric',
629            ], [
630                'name'       => 'file_attribute_upload_size',
631                'title'      => 'admin::app.configuration.index.catalog.products.attribute.file-upload-size',
632                'type'       => 'text',
633                'validation' => 'numeric',
634            ],
635        ],
636    ], [
637        'key'    => 'catalog.products.social_share',
638        'name'   => 'admin::app.configuration.index.catalog.products.social-share.title',
639        'info'   => 'admin::app.configuration.index.catalog.products.social-share.title-info',
640        'sort'   => 10,
641        'fields' => [
642            [
643                'name'  => 'enabled',
644                'title' => 'admin::app.configuration.index.catalog.products.social-share.enable-social-share',
645                'type'  => 'boolean',
646            ], [
647                'name'  => 'facebook',
648                'title' => 'admin::app.configuration.index.catalog.products.social-share.enable-share-facebook',
649                'type'  => 'boolean',
650            ], [
651                'name'  => 'twitter',
652                'title' => 'admin::app.configuration.index.catalog.products.social-share.enable-share-twitter',
653                'type'  => 'boolean',
654            ], [
655                'name'  => 'pinterest',
656                'title' => 'admin::app.configuration.index.catalog.products.social-share.enable-share-pinterest',
657                'type'  => 'boolean',
658            ], [
659                'name'  => 'whatsapp',
660                'title' => 'admin::app.configuration.index.catalog.products.social-share.enable-share-whatsapp',
661                'type'  => 'boolean',
662                'info'  => 'admin::app.configuration.index.catalog.products.social-share.enable-share-whatsapp-info',
663            ], [
664                'name'  => 'linkedin',
665                'title' => 'admin::app.configuration.index.catalog.products.social-share.enable-share-linkedin',
666                'type'  => 'boolean',
667            ], [
668                'name'  => 'email',
669                'title' => 'admin::app.configuration.index.catalog.products.social-share.enable-share-email',
670                'type'  => 'boolean',
671            ], [
672                'name'  => 'share_message',
673                'title' => 'admin::app.configuration.index.catalog.products.social-share.share-message',
674                'type'  => 'text',
675            ],
676        ],
677    ], [
678        'key'  => 'catalog.rich_snippets',
679        'name' => 'admin::app.configuration.index.catalog.rich-snippets.title',
680        'info' => 'admin::app.configuration.index.catalog.rich-snippets.info',
681        'icon' => 'settings/settings.svg',
682        'sort' => 2,
683    ], [
684        'key'    => 'catalog.rich_snippets.products',
685        'name'   => 'admin::app.configuration.index.catalog.rich-snippets.products.title',
686        'info'   => 'admin::app.configuration.index.catalog.rich-snippets.products.title-info',
687        'sort'   => 1,
688        'fields' => [
689            [
690                'name'  => 'enable',
691                'title' => 'admin::app.configuration.index.catalog.rich-snippets.products.enable',
692                'type'  => 'boolean',
693            ], [
694                'name'  => 'show_sku',
695                'title' => 'admin::app.configuration.index.catalog.rich-snippets.products.show-sku',
696                'type'  => 'boolean',
697            ], [
698                'name'  => 'show_weight',
699                'title' => 'admin::app.configuration.index.catalog.rich-snippets.products.show-weight',
700                'type'  => 'boolean',
701            ], [
702                'name'  => 'show_categories',
703                'title' => 'admin::app.configuration.index.catalog.rich-snippets.products.show-categories',
704                'type'  => 'boolean',
705            ], [
706                'name'  => 'show_images',
707                'title' => 'admin::app.configuration.index.catalog.rich-snippets.products.show-images',
708                'type'  => 'boolean',
709            ], [
710                'name'  => 'show_reviews',
711                'title' => 'admin::app.configuration.index.catalog.rich-snippets.products.show-reviews',
712                'type'  => 'boolean',
713            ], [
714                'name'  => 'show_ratings',
715                'title' => 'admin::app.configuration.index.catalog.rich-snippets.products.show-ratings',
716                'type'  => 'boolean',
717            ], [
718                'name'  => 'show_offers',
719                'title' => 'admin::app.configuration.index.catalog.rich-snippets.products.show-offers',
720                'type'  => 'boolean',
721            ],
722        ],
723    ], [
724        'key'    => 'catalog.rich_snippets.categories',
725        'name'   => 'admin::app.configuration.index.catalog.rich-snippets.categories.title',
726        'info'   => 'admin::app.configuration.index.catalog.rich-snippets.categories.title-info',
727        'sort'   => 1,
728        'fields' => [
729            [
730                'name'  => 'enable',
731                'title' => 'admin::app.configuration.index.catalog.rich-snippets.categories.enable',
732                'type'  => 'boolean',
733            ], [
734                'name'  => 'show_search_input_field',
735                'title' => 'admin::app.configuration.index.catalog.rich-snippets.categories.show-search-input-field',
736                'type'  => 'boolean',
737            ],
738        ],
739    ], [
740        'key'  => 'catalog.inventory',
741        'name' => 'admin::app.configuration.index.catalog.inventory.title',
742        'info' => 'admin::app.configuration.index.catalog.inventory.title-info',
743        'icon' => 'settings/inventory.svg',
744        'sort' => 3,
745    ], [
746        'key'    => 'catalog.inventory.stock_options',
747        'name'   => 'admin::app.configuration.index.catalog.inventory.product-stock-options.title',
748        'info'   => 'admin::app.configuration.index.catalog.inventory.product-stock-options.info',
749        'sort'   => 1,
750        'fields' => [
751            [
752                'name'          => 'back_orders',
753                'title'         => 'admin::app.configuration.index.catalog.inventory.product-stock-options.allow-back-orders',
754                'type'          => 'boolean',
755                'default',
756            ],
757            // [
758            //     'name'          => 'maximum_product',
759            //     'title'         => 'admin::app.configuration.index.catalog.inventory.product-stock-options.max-qty-allowed-in-cart',
760            //     'type'          => 'text',
761            //     'default'       => '10',
762            // ], [
763            //     'name'          => 'minimum_product',
764            //     'title'         => 'admin::app.configuration.index.catalog.inventory.product-stock-options.min-qty-allowed-in-cart',
765            //     'type'          => 'number',
766            //     'default'       => '0',
767            // ],
768            [
769                'name'          => 'out_of_stock_threshold',
770                'title'         => 'admin::app.configuration.index.catalog.inventory.product-stock-options.out-of-stock-threshold',
771                'type'          => 'number',
772                'default'       => '0',
773            ],
774        ],
775    ],
776
777    /**
778     * Customer.
779     */
780    [
781        'key'  => 'customer',
782        'name' => 'admin::app.configuration.index.customer.title',
783        'info' => 'admin::app.configuration.index.customer.info',
784        'sort' => 3,
785    ], [
786        'key'  => 'customer.address',
787        'name' => 'admin::app.configuration.index.customer.address.title',
788        'info' => 'admin::app.configuration.index.customer.address.info',
789        'icon' => 'settings/address.svg',
790        'sort' => 1,
791    ], [
792        'key'    => 'customer.address.requirements',
793        'name'   => 'admin::app.configuration.index.customer.address.requirements.title',
794        'info'   => 'admin::app.configuration.index.customer.address.requirements.title-info',
795        'sort'   => 1,
796        'fields' => [
797            [
798                'name'          => 'country',
799                'title'         => 'admin::app.configuration.index.customer.address.requirements.country',
800                'type'          => 'boolean',
801                'channel_based' => true,
802                'default'       => 1,
803            ], [
804                'name'          => 'state',
805                'title'         => 'admin::app.configuration.index.customer.address.requirements.state',
806                'type'          => 'boolean',
807                'channel_based' => true,
808                'default'       => 1,
809            ], [
810                'name'          => 'postcode',
811                'title'         => 'admin::app.configuration.index.customer.address.requirements.zip',
812                'type'          => 'boolean',
813                'channel_based' => true,
814                'default'       => 1,
815            ],
816        ],
817    ], [
818        'key'    => 'customer.address.information',
819        'name'   => 'admin::app.configuration.index.customer.address.information.title',
820        'info'   => 'admin::app.configuration.index.customer.address.information.title-info',
821        'sort'   => 2,
822        'fields' => [
823            [
824                'name'          => 'street_lines',
825                'title'         => 'admin::app.configuration.index.customer.address.information.street-lines',
826                'type'          => 'text',
827                'validation'    => 'between:1,4',
828                'channel_based' => true,
829                'default_value' => 1,
830            ],
831        ],
832    ], [
833        'key'  => 'customer.captcha',
834        'name' => 'admin::app.configuration.index.customer.captcha.title',
835        'info' => 'admin::app.configuration.index.customer.captcha.info',
836        'icon' => 'settings/captcha.svg',
837        'sort' => 2,
838    ], [
839        'key'    => 'customer.captcha.credentials',
840        'name'   => 'admin::app.configuration.index.customer.captcha.credentials.title',
841        'info'   => 'admin::app.configuration.index.customer.captcha.credentials.title-info',
842        'sort'   => 1,
843        'fields' => [
844            [
845                'name'          => 'site_key',
846                'title'         => 'admin::app.configuration.index.customer.captcha.credentials.site-key',
847                'type'          => 'text',
848                'channel_based' => true,
849            ], [
850                'name'          => 'secret_key',
851                'title'         => 'admin::app.configuration.index.customer.captcha.credentials.secret-key',
852                'type'          => 'text',
853                'channel_based' => true,
854            ], [
855                'name'          => 'status',
856                'title'         => 'admin::app.configuration.index.customer.captcha.credentials.status',
857                'type'          => 'boolean',
858                'channel_based' => true,
859            ],
860        ],
861    ], [
862        'key'  => 'customer.settings',
863        'name' => 'admin::app.configuration.index.customer.settings.title',
864        'info' => 'admin::app.configuration.index.customer.settings.settings-info',
865        'icon' => 'settings/settings.svg',
866        'sort' => 3,
867    ],
868    // [
869    //     'key'    => 'customer.settings.login_as_customer',
870    //     'name'   => 'admin::app.configuration.index.customer.settings.login-as-customer.title',
871    //     'info'   => 'admin::app.configuration.index.customer.settings.login-as-customer.title-info',
872    //     'sort'   => 1,
873    //     'fields' => [
874    //         [
875    //             'name'         => 'login',
876    //             'title'        => 'admin::app.configuration.index.customer.settings.login-as-customer.allow-option',
877    //             'type'         => 'boolean',
878    //             'default'      => 1,
879    //         ],
880    //     ],
881    // ],
882    [
883        'key'    => 'customer.settings.wishlist',
884        'name'   => 'admin::app.configuration.index.customer.settings.wishlist.title',
885        'info'   => 'admin::app.configuration.index.customer.settings.wishlist.title-info',
886        'sort'   => 2,
887        'fields' => [
888            [
889                'name'    => 'wishlist_option',
890                'title'   => 'admin::app.configuration.index.customer.settings.wishlist.allow-option',
891                'type'    => 'boolean',
892                'default' => 1,
893            ],
894        ],
895    ], [
896        'key'    => 'customer.settings.login_options',
897        'name'   => 'admin::app.configuration.index.customer.settings.login-options.title',
898        'info'   => 'admin::app.configuration.index.customer.settings.login-options.title-info',
899        'sort'   => 3,
900        'fields' => [
901            [
902                'name'    => 'redirected_to_page',
903                'title'   => 'admin::app.configuration.index.customer.settings.login-options.redirect-to-page',
904                'type'    => 'select',
905                'default' => 'home',
906                'options' => [
907                    [
908                        'title' => 'admin::app.configuration.index.customer.settings.login-options.home',
909                        'value' => 'home',
910                    ], [
911                        'title' => 'admin::app.configuration.index.customer.settings.login-options.account',
912                        'value' => 'account',
913                    ],
914                ],
915            ],
916        ],
917    ], [
918        'key'    => 'customer.settings.create_new_account_options',
919        'name'   => 'admin::app.configuration.index.customer.settings.create-new-account-option.title',
920        'info'   => 'admin::app.configuration.index.customer.settings.create-new-account-option.title-info',
921        'sort'   => 4,
922        'fields' => [
923            [
924                'name'    => 'default_group',
925                'title'   => 'admin::app.configuration.index.customer.settings.create-new-account-option.default-group.title',
926                'info'    => 'admin::app.configuration.index.customer.settings.create-new-account-option.default-group.title-info',
927                'type'    => 'select',
928                'default' => 'guest',
929                'options' => [
930                    [
931                        'title' => 'admin::app.configuration.index.customer.settings.create-new-account-option.default-group.general',
932                        'value' => 'general',
933                    ], [
934                        'title' => 'admin::app.configuration.index.customer.settings.create-new-account-option.default-group.guest',
935                        'value' => 'guest',
936                    ], [
937                        'title' => 'admin::app.configuration.index.customer.settings.create-new-account-option.default-group.wholesale',
938                        'value' => 'wholesale',
939                    ],
940                ],
941            ], [
942                'name'    => 'news_letter',
943                'title'   => 'admin::app.configuration.index.customer.settings.create-new-account-option.news-letter',
944                'info'    => 'admin::app.configuration.index.customer.settings.create-new-account-option.news-letter-info',
945                'type'    => 'boolean',
946                'default' => true,
947            ],
948        ],
949    ], [
950        'key'    => 'customer.settings.newsletter',
951        'name'   => 'admin::app.configuration.index.customer.settings.newsletter.title',
952        'info'   => 'admin::app.configuration.index.customer.settings.newsletter.title-info',
953        'sort'   => 5,
954        'fields' => [
955            [
956                'name'         => 'subscription',
957                'title'        => 'admin::app.configuration.index.customer.settings.newsletter.subscription',
958                'info'         => 'Enable subscription option for users in the footer section.',
959                'type'         => 'boolean',
960                'default'      => 1,
961            ],
962        ],
963    ], [
964        'key'    => 'customer.settings.email',
965        'name'   => 'admin::app.configuration.index.customer.settings.email.title',
966        'info'   => 'admin::app.configuration.index.customer.settings.email.title-info',
967        'sort'   => 6,
968        'fields' => [
969            [
970                'name'  => 'verification',
971                'title' => 'admin::app.configuration.index.customer.settings.email.email-verification',
972                'type'  => 'boolean',
973            ],
974        ],
975    ], [
976        'key'    => 'customer.settings.social_login',
977        'name'   => 'admin::app.configuration.index.customer.settings.social-login.social-login',
978        'info'   => 'admin::app.configuration.index.customer.settings.social-login.social-login-info',
979        'sort'   => 7,
980        'fields' => [
981            [
982                'name'          => 'enable_facebook',
983                'title'         => 'admin::app.configuration.index.customer.settings.social-login.enable-facebook',
984                'type'          => 'boolean',
985                'channel_based' => true,
986            ], [
987                'name'          => 'enable_twitter',
988                'title'         => 'admin::app.configuration.index.customer.settings.social-login.enable-twitter',
989                'type'          => 'boolean',
990                'channel_based' => true,
991            ], [
992                'name'          => 'enable_google',
993                'title'         => 'admin::app.configuration.index.customer.settings.social-login.enable-google',
994                'type'          => 'boolean',
995                'channel_based' => true,
996            ], [
997                'name'          => 'enable_linkedin-openid',
998                'title'         => 'admin::app.configuration.index.customer.settings.social-login.enable-linkedin',
999                'type'          => 'boolean',
1000                'channel_based' => true,
1001            ], [
1002                'name'          => 'enable_github',
1003                'title'         => 'admin::app.configuration.index.customer.settings.social-login.enable-github',
1004                'type'          => 'boolean',
1005                'channel_based' => true,
1006            ],
1007        ],
1008    ],
1009
1010    /**
1011     * Emails.
1012     */
1013    [
1014        'key'  => 'emails',
1015        'name' => 'admin::app.configuration.index.email.title',
1016        'info' => 'admin::app.configuration.index.email.info',
1017        'sort' => 4,
1018    ], [
1019        'key'  => 'emails.configure',
1020        'name' => 'admin::app.configuration.index.email.email-settings.title',
1021        'info' => 'admin::app.configuration.index.email.email-settings.info',
1022        'icon' => 'settings/email.svg',
1023        'sort' => 1,
1024    ], [
1025        'key'    => 'emails.configure.email_settings',
1026        'name'   => 'admin::app.configuration.index.email.email-settings.title',
1027        'info'   => 'admin::app.configuration.index.email.email-settings.info',
1028        'sort'   => 1,
1029        'fields' => [
1030            [
1031                'name'          => 'sender_name',
1032                'title'         => 'admin::app.configuration.index.email.email-settings.email-sender-name',
1033                'type'          => 'text',
1034                'info'          => 'admin::app.configuration.index.email.email-settings.email-sender-name-tip',
1035                'validation'    => 'required|max:50',
1036                'channel_based' => true,
1037                'default_value' => config('mail.from.name'),
1038            ], [
1039                'name'          => 'shop_email_from',
1040                'title'         => 'admin::app.configuration.index.email.email-settings.shop-email-from',
1041                'type'          => 'text',
1042                'info'          => 'admin::app.configuration.index.email.email-settings.shop-email-from-tip',
1043                'validation'    => 'required|email',
1044                'channel_based' => true,
1045                'default_value' => config('mail.from.address'),
1046            ], [
1047                'name'          => 'admin_name',
1048                'title'         => 'admin::app.configuration.index.email.email-settings.admin-name',
1049                'type'          => 'text',
1050                'info'          => 'admin::app.configuration.index.email.email-settings.admin-name-tip',
1051                'validation'    => 'required|max:50',
1052                'channel_based' => true,
1053                'default_value' => config('mail.admin.name'),
1054            ], [
1055                'name'          => 'admin_email',
1056                'title'         => 'admin::app.configuration.index.email.email-settings.admin-email',
1057                'type'          => 'text',
1058                'info'          => 'admin::app.configuration.index.email.email-settings.admin-email-tip',
1059                'validation'    => 'required|email',
1060                'channel_based' => true,
1061                'default_value' => config('mail.admin.address'),
1062            ], [
1063                'name'          => 'contact_name',
1064                'title'         => 'admin::app.configuration.index.email.email-settings.contact-name',
1065                'type'          => 'text',
1066                'info'          => 'admin::app.configuration.index.email.email-settings.contact-name-tip',
1067                'validation'    => 'required|max:50',
1068                'channel_based' => true,
1069                'default_value' => config('mail.contact.name'),
1070            ], [
1071                'name'          => 'contact_email',
1072                'title'         => 'admin::app.configuration.index.email.email-settings.contact-email',
1073                'type'          => 'text',
1074                'info'          => 'admin::app.configuration.index.email.email-settings.contact-email-tip',
1075                'validation'    => 'required|email',
1076                'channel_based' => true,
1077                'default_value' => config('mail.contact.address'),
1078            ],
1079        ],
1080    ], [
1081        'key'  => 'emails.general',
1082        'name' => 'admin::app.configuration.index.email.notifications.title',
1083        'info' => 'admin::app.configuration.index.email.notifications.info',
1084        'icon' => 'settings/store.svg',
1085        'sort' => 1,
1086    ], [
1087        'key'    => 'emails.general.notifications',
1088        'name'   => 'admin::app.configuration.index.email.notifications.title',
1089        'info'   => 'admin::app.configuration.index.email.notifications.info',
1090        'sort'   => 1,
1091        'fields' => [
1092            [
1093                'name'  => 'emails.general.notifications.verification',
1094                'title' => 'admin::app.configuration.index.email.notifications.verification',
1095                'type'  => 'boolean',
1096            ], [
1097                'name'  => 'emails.general.notifications.registration',
1098                'title' => 'admin::app.configuration.index.email.notifications.registration',
1099                'type'  => 'boolean',
1100            ], [
1101                'name'  => 'emails.general.notifications.customer_registration_confirmation_mail_to_admin',
1102                'title' => 'admin::app.configuration.index.email.notifications.customer-registration-confirmation-mail-to-admin',
1103                'type'  => 'boolean',
1104            ], [
1105                'name'  => 'emails.general.notifications.customer',
1106                'title' => 'admin::app.configuration.index.email.notifications.customer',
1107                'type'  => 'boolean',
1108            ], [
1109                'name'  => 'emails.general.notifications.new_order',
1110                'title' => 'admin::app.configuration.index.email.notifications.new-order',
1111                'type'  => 'boolean',
1112            ], [
1113                'name'  => 'emails.general.notifications.new_admin',
1114                'title' => 'admin::app.configuration.index.email.notifications.new-admin',
1115                'type'  => 'boolean',
1116            ], [
1117                'name'  => 'emails.general.notifications.new_invoice',
1118                'title' => 'admin::app.configuration.index.email.notifications.new-invoice',
1119                'type'  => 'boolean',
1120            ], [
1121                'name'  => 'emails.general.notifications.new_refund',
1122                'title' => 'admin::app.configuration.index.email.notifications.new-refund',
1123                'type'  => 'boolean',
1124            ], [
1125                'name'  => 'emails.general.notifications.new_shipment',
1126                'title' => 'admin::app.configuration.index.email.notifications.new-shipment',
1127                'type'  => 'boolean',
1128            ], [
1129                'name'  => 'emails.general.notifications.new_inventory_source',
1130                'title' => 'admin::app.configuration.index.email.notifications.new-inventory-source',
1131                'type'  => 'boolean',
1132            ], [
1133                'name'  => 'emails.general.notifications.cancel_order',
1134                'title' => 'admin::app.configuration.index.email.notifications.cancel-order',
1135                'type'  => 'boolean',
1136            ],
1137        ],
1138    ],
1139
1140    /**
1141     * Sales.
1142     */
1143    [
1144        'key'  => 'sales',
1145        'name' => 'admin::app.configuration.index.sales.title',
1146        'info' => 'admin::app.configuration.index.sales.info',
1147        'sort' => 5,
1148    ], [
1149        'key'  => 'sales.shipping',
1150        'name' => 'admin::app.configuration.index.sales.shipping-setting.title',
1151        'info' => 'admin::app.configuration.index.sales.shipping-setting.info',
1152        'icon' => 'settings/shipping.svg',
1153        'sort' => 1,
1154    ], [
1155        'key'    => 'sales.shipping.origin',
1156        'name'   => 'admin::app.configuration.index.sales.shipping-setting.origin.title',
1157        'info'   => 'admin::app.configuration.index.sales.shipping-setting.origin.title-info',
1158        'sort'   => 0,
1159        'fields' => [
1160            [
1161                'name'          => 'country',
1162                'title'         => 'admin::app.configuration.index.sales.shipping-setting.origin.country',
1163                'type'          => 'country',
1164                'validation'    => 'required',
1165                'channel_based' => true,
1166                'locale_based'  => true,
1167            ], [
1168                'name'          => 'state',
1169                'title'         => 'admin::app.configuration.index.sales.shipping-setting.origin.state',
1170                'type'          => 'state',
1171                'validation'    => 'required',
1172                'channel_based' => true,
1173                'locale_based'  => true,
1174            ], [
1175                'name'          => 'city',
1176                'title'         => 'admin::app.configuration.index.sales.shipping-setting.origin.city',
1177                'type'          => 'text',
1178                'validation'    => 'required',
1179                'channel_based' => true,
1180                'locale_based'  => true,
1181            ], [
1182                'name'          => 'address',
1183                'title'         => 'admin::app.configuration.index.sales.shipping-setting.origin.street-address',
1184                'type'          => 'text',
1185                'validation'    => 'required',
1186                'channel_based' => true,
1187                'locale_based'  => true,
1188            ], [
1189                'name'          => 'zipcode',
1190                'title'         => 'admin::app.configuration.index.sales.shipping-setting.origin.zip',
1191                'type'          => 'text',
1192                'validation'    => 'required',
1193                'channel_based' => true,
1194                'locale_based'  => true,
1195            ], [
1196                'name'          => 'store_name',
1197                'title'         => 'admin::app.configuration.index.sales.shipping-setting.origin.store-name',
1198                'type'          => 'text',
1199                'channel_based' => true,
1200                'locale_based'  => true,
1201            ], [
1202                'name'          => 'vat_number',
1203                'title'         => 'admin::app.configuration.index.sales.shipping-setting.origin.vat-number',
1204                'type'          => 'text',
1205                'channel_based' => true,
1206            ], [
1207                'name'          => 'contact',
1208                'title'         => 'admin::app.configuration.index.sales.shipping-setting.origin.contact-number',
1209                'type'          => 'text',
1210                'channel_based' => true,
1211            ], [
1212                'name'          => 'bank_details',
1213                'title'         => 'admin::app.configuration.index.sales.shipping-setting.origin.bank-details',
1214                'type'          => 'textarea',
1215                'channel_based' => true,
1216                'locale_based'  => true,
1217            ],
1218        ],
1219    ], [
1220        'key'  => 'sales.carriers',
1221        'name' => 'admin::app.configuration.index.sales.shipping-methods.title',
1222        'info' => 'admin::app.configuration.index.sales.shipping-methods.info',
1223        'icon' => 'settings/shipping-method.svg',
1224        'sort' => 2,
1225    ], [
1226        'key'    => 'sales.carriers.free',
1227        'name'   => 'admin::app.configuration.index.sales.shipping-methods.free-shipping.page-title',
1228        'info'   => 'admin::app.configuration.index.sales.shipping-methods.free-shipping.title-info',
1229        'sort'   => 1,
1230        'fields' => [
1231            [
1232                'name'          => 'title',
1233                'title'         => 'admin::app.configuration.index.sales.shipping-methods.free-shipping.title',
1234                'type'          => 'text',
1235                'depends'       => 'active:1',
1236                'validation'    => 'required_if:active,1',
1237                'channel_based' => true,
1238                'locale_based'  => true,
1239            ], [
1240                'name'          => 'description',
1241                'title'         => 'admin::app.configuration.index.sales.shipping-methods.free-shipping.description',
1242                'type'          => 'textarea',
1243                'channel_based' => true,
1244                'locale_based'  => true,
1245            ], [
1246                'name'          => 'active',
1247                'title'         => 'admin::app.configuration.index.sales.shipping-methods.free-shipping.status',
1248                'type'          => 'boolean',
1249                'channel_based' => true,
1250                'locale_based'  => false,
1251            ],
1252        ],
1253    ], [
1254        'key'    => 'sales.carriers.flatrate',
1255        'name'   => 'admin::app.configuration.index.sales.shipping-methods.flat-rate-shipping.page-title',
1256        'info'   => 'admin::app.configuration.index.sales.shipping-methods.flat-rate-shipping.title-info',
1257        'sort'   => 2,
1258        'fields' => [
1259            [
1260                'name'          => 'title',
1261                'title'         => 'admin::app.configuration.index.sales.shipping-methods.flat-rate-shipping.title',
1262                'type'          => 'text',
1263                'depends'       => 'active:1',
1264                'validation'    => 'required_if:active,1',
1265                'channel_based' => true,
1266                'locale_based'  => true,
1267            ], [
1268                'name'          => 'description',
1269                'title'         => 'admin::app.configuration.index.sales.shipping-methods.flat-rate-shipping.description',
1270                'type'          => 'textarea',
1271                'channel_based' => true,
1272                'locale_based'  => true,
1273            ], [
1274                'name'          => 'default_rate',
1275                'title'         => 'admin::app.configuration.index.sales.shipping-methods.flat-rate-shipping.rate',
1276                'type'          => 'text',
1277                'depends'       => 'active:1',
1278                'validation'    => 'required_if:active,1',
1279                'channel_based' => true,
1280                'locale_based'  => false,
1281            ], [
1282                'name'    => 'type',
1283                'title'   => 'admin::app.configuration.index.sales.shipping-methods.flat-rate-shipping.type.title',
1284                'type'    => 'select',
1285                'options' => [
1286                    [
1287                        'title' => 'admin::app.configuration.index.sales.shipping-methods.flat-rate-shipping.type.per-unit',
1288                        'value' => 'per_unit',
1289                    ], [
1290                        'title' => 'admin::app.configuration.index.sales.shipping-methods.flat-rate-shipping.type.per-order',
1291                        'value' => 'per_order',
1292                    ],
1293                ],
1294                'channel_based' => true,
1295                'locale_based'  => false,
1296            ], [
1297                'name'          => 'active',
1298                'title'         => 'admin::app.configuration.index.sales.shipping-methods.flat-rate-shipping.status',
1299                'type'          => 'boolean',
1300                'channel_based' => true,
1301                'locale_based'  => false,
1302            ],
1303        ],
1304    ], [
1305        'key'  => 'sales.payment_methods',
1306        'name' => 'admin::app.configuration.index.sales.payment-methods.page-title',
1307        'info' => 'admin::app.configuration.index.sales.payment-methods.info',
1308        'icon' => 'settings/payment-method.svg',
1309        'sort' => 3,
1310    ], [
1311        'key'    => 'sales.payment_methods.cashondelivery',
1312        'name'   => 'admin::app.configuration.index.sales.payment-methods.cash-on-delivery',
1313        'info'   => 'admin::app.configuration.index.sales.payment-methods.cash-on-delivery-info',
1314        'sort'   => 1,
1315        'fields' => [
1316            [
1317                'name'          => 'title',
1318                'title'         => 'admin::app.configuration.index.sales.payment-methods.title',
1319                'type'          => 'text',
1320                'depends'       => 'active:1',
1321                'validation'    => 'required_if:active,1',
1322                'channel_based' => true,
1323                'locale_based'  => true,
1324            ], [
1325                'name'          => 'description',
1326                'title'         => 'admin::app.configuration.index.sales.payment-methods.description',
1327                'type'          => 'textarea',
1328                'channel_based' => true,
1329                'locale_based'  => true,
1330            ], [
1331                'name'          => 'image',
1332                'title'         => 'admin::app.configuration.index.sales.payment-methods.logo',
1333                'type'          => 'image',
1334                'info'          => 'admin::app.configuration.index.sales.payment-methods.logo-information',
1335                'channel_based' => true,
1336                'locale_based'  => false,
1337                'validation'    => 'mimes:bmp,jpeg,jpg,png,webp',
1338            ], [
1339                'name'          => 'instructions',
1340                'title'         => 'admin::app.configuration.index.sales.payment-methods.instructions',
1341                'type'          => 'textarea',
1342                'channel_based' => true,
1343                'locale_based'  => true,
1344            ], [
1345                'name'          => 'generate_invoice',
1346                'title'         => 'admin::app.configuration.index.sales.payment-methods.generate-invoice',
1347                'type'          => 'boolean',
1348                'default_value' => false,
1349                'channel_based' => true,
1350                'locale_based'  => false,
1351            ], [
1352                'name'          => 'invoice_status',
1353                'title'         => 'admin::app.configuration.index.sales.payment-methods.set-invoice-status',
1354                'validation'    => 'required_if:generate_invoice,1',
1355                'type'          => 'select',
1356                'options'       => [
1357                    [
1358                        'title' => 'admin::app.configuration.index.sales.payment-methods.pending',
1359                        'value' => 'pending',
1360                    ], [
1361                        'title' => 'admin::app.configuration.index.sales.payment-methods.paid',
1362                        'value' => 'paid',
1363                    ],
1364                ],
1365                'info'          => 'admin::app.configuration.index.sales.payment-methods.set-order-status',
1366                'channel_based' => true,
1367                'locale_based'  => false,
1368            ], [
1369                'name'          => 'order_status',
1370                'title'         => 'admin::app.configuration.index.sales.payment-methods.set-order-status',
1371                'type'          => 'select',
1372                'options'       => [
1373                    [
1374                        'title' => 'admin::app.configuration.index.sales.payment-methods.pending',
1375                        'value' => Order::STATUS_PENDING,
1376                    ], [
1377                        'title' => 'admin::app.configuration.index.sales.payment-methods.pending-payment',
1378                        'value' => Order::STATUS_PENDING_PAYMENT,
1379                    ], [
1380                        'title' => 'admin::app.configuration.index.sales.payment-methods.processing',
1381                        'value' => Order::STATUS_PROCESSING,
1382                    ],
1383                ],
1384                'info'          => 'admin::app.configuration.index.sales.payment-methods.generate-invoice-applicable',
1385                'channel_based' => true,
1386                'locale_based'  => false,
1387            ], [
1388                'name'          => 'active',
1389                'title'         => 'admin::app.configuration.index.sales.payment-methods.status',
1390                'type'          => 'boolean',
1391                'channel_based' => true,
1392                'locale_based'  => false,
1393            ], [
1394                'name'    => 'sort',
1395                'title'   => 'admin::app.configuration.index.sales.payment-methods.sort-order',
1396                'type'    => 'select',
1397                'options' => [
1398                    [
1399                        'title' => '1',
1400                        'value' => 1,
1401                    ], [
1402                        'title' => '2',
1403                        'value' => 2,
1404                    ], [
1405                        'title' => '3',
1406                        'value' => 3,
1407                    ], [
1408                        'title' => '4',
1409                        'value' => 4,
1410                    ],
1411                ],
1412            ],
1413        ],
1414    ], [
1415        'key'    => 'sales.payment_methods.moneytransfer',
1416        'name'   => 'admin::app.configuration.index.sales.payment-methods.money-transfer',
1417        'info'   => 'admin::app.configuration.index.sales.payment-methods.money-transfer-info',
1418        'sort'   => 2,
1419        'fields' => [
1420            [
1421                'name'          => 'title',
1422                'title'         => 'admin::app.configuration.index.sales.payment-methods.title',
1423                'type'          => 'text',
1424                'depends'       => 'active:1',
1425                'validation'    => 'required_if:active,1',
1426                'channel_based' => true,
1427                'locale_based'  => true,
1428            ], [
1429                'name'          => 'description',
1430                'title'         => 'admin::app.configuration.index.sales.payment-methods.description',
1431                'type'          => 'textarea',
1432                'channel_based' => true,
1433                'locale_based'  => true,
1434            ], [
1435                'name'          => 'image',
1436                'title'         => 'admin::app.configuration.index.sales.payment-methods.logo',
1437                'type'          => 'image',
1438                'info'          => 'admin::app.configuration.index.sales.payment-methods.logo-information',
1439                'channel_based' => false,
1440                'locale_based'  => false,
1441                'validation'    => 'mimes:bmp,jpeg,jpg,png,webp',
1442            ], [
1443                'name'          => 'generate_invoice',
1444                'title'         => 'admin::app.configuration.index.sales.payment-methods.generate-invoice',
1445                'type'          => 'boolean',
1446                'default_value' => false,
1447                'channel_based' => true,
1448                'locale_based'  => false,
1449            ], [
1450                'name'    => 'invoice_status',
1451                'title'   => 'admin::app.configuration.index.sales.payment-methods.set-invoice-status',
1452                'type'    => 'select',
1453                'options' => [
1454                    [
1455                        'title' => 'admin::app.configuration.index.sales.payment-methods.pending',
1456                        'value' => 'pending',
1457                    ], [
1458                        'title' => 'admin::app.configuration.index.sales.payment-methods.paid',
1459                        'value' => 'paid',
1460                    ],
1461                ],
1462                'info'          => 'admin::app.configuration.index.sales.payment-methods.generate-invoice-applicable',
1463                'channel_based' => true,
1464                'locale_based'  => false,
1465            ], [
1466                'name'    => 'order_status',
1467                'title'   => 'admin::app.configuration.index.sales.payment-methods.set-order-status',
1468                'type'    => 'select',
1469                'options' => [
1470                    [
1471                        'title' => 'admin::app.configuration.index.sales.payment-methods.pending',
1472                        'value' => 'pending',
1473                    ], [
1474                        'title' => 'admin::app.configuration.index.sales.payment-methods.pending-payment',
1475                        'value' => 'pending_payment',
1476                    ], [
1477                        'title' => 'admin::app.configuration.index.sales.payment-methods.processing',
1478                        'value' => 'processing',
1479                    ],
1480                ],
1481                'info'          => 'admin::app.configuration.index.sales.payment-methods.generate-invoice-applicable',
1482                'channel_based' => true,
1483                'locale_based'  => false,
1484            ], [
1485                'name'          => 'mailing_address',
1486                'title'         => 'admin::app.configuration.index.sales.payment-methods.mailing-address',
1487                'type'          => 'textarea',
1488                'channel_based' => true,
1489                'locale_based'  => true,
1490            ], [
1491                'name'          => 'active',
1492                'title'         => 'admin::app.configuration.index.sales.payment-methods.status',
1493                'type'          => 'boolean',
1494                'channel_based' => true,
1495                'locale_based'  => false,
1496            ], [
1497                'name'    => 'sort',
1498                'title'   => 'admin::app.configuration.index.sales.payment-methods.sort-order',
1499                'type'    => 'select',
1500                'options' => [
1501                    [
1502                        'title' => '1',
1503                        'value' => 1,
1504                    ], [
1505                        'title' => '2',
1506                        'value' => 2,
1507                    ], [
1508                        'title' => '3',
1509                        'value' => 3,
1510                    ], [
1511                        'title' => '4',
1512                        'value' => 4,
1513                    ],
1514                ],
1515            ],
1516        ],
1517    ], [
1518        'key'    => 'sales.payment_methods.paypal_standard',
1519        'name'   => 'admin::app.configuration.index.sales.payment-methods.paypal-standard',
1520        'info'   => 'admin::app.configuration.index.sales.payment-methods.paypal-standard-info',
1521        'sort'   => 3,
1522        'fields' => [
1523            [
1524                'name'          => 'title',
1525                'title'         => 'admin::app.configuration.index.sales.payment-methods.title',
1526                'type'          => 'text',
1527                'depends'       => 'active:1',
1528                'validation'    => 'required_if:active,1',
1529                'channel_based' => true,
1530                'locale_based'  => true,
1531            ], [
1532                'name'          => 'description',
1533                'title'         => 'admin::app.configuration.index.sales.payment-methods.description',
1534                'type'          => 'textarea',
1535                'channel_based' => true,
1536                'locale_based'  => true,
1537            ], [
1538                'name'          => 'image',
1539                'title'         => 'admin::app.configuration.index.sales.payment-methods.logo',
1540                'type'          => 'image',
1541                'info'          => 'admin::app.configuration.index.sales.payment-methods.logo-information',
1542                'channel_based' => false,
1543                'locale_based'  => false,
1544                'validation'    => 'mimes:bmp,jpeg,jpg,png,webp',
1545            ], [
1546                'name'          => 'business_account',
1547                'title'         => 'admin::app.configuration.index.sales.payment-methods.business-account',
1548                'type'          => 'text',
1549                'depends'       => 'active:1',
1550                'validation'    => 'required_if:active,1',
1551                'channel_based' => true,
1552                'locale_based'  => false,
1553            ],  [
1554                'name'          => 'active',
1555                'title'         => 'admin::app.configuration.index.sales.payment-methods.status',
1556                'type'          => 'boolean',
1557                'channel_based' => true,
1558                'locale_based'  => false,
1559            ], [
1560                'name'          => 'sandbox',
1561                'title'         => 'admin::app.configuration.index.sales.payment-methods.sandbox',
1562                'type'          => 'boolean',
1563                'channel_based' => true,
1564                'locale_based'  => false,
1565            ], [
1566                'name'    => 'sort',
1567                'title'   => 'admin::app.configuration.index.sales.payment-methods.sort-order',
1568                'type'    => 'select',
1569                'options' => [
1570                    [
1571                        'title' => '1',
1572                        'value' => 1,
1573                    ], [
1574                        'title' => '2',
1575                        'value' => 2,
1576                    ], [
1577                        'title' => '3',
1578                        'value' => 3,
1579                    ], [
1580                        'title' => '4',
1581                        'value' => 4,
1582                    ],
1583                ],
1584            ],
1585        ],
1586    ], [
1587        'key'    => 'sales.payment_methods.paypal_smart_button',
1588        'name'   => 'admin::app.configuration.index.sales.payment-methods.paypal-smart-button',
1589        'info'   => 'admin::app.configuration.index.sales.payment-methods.paypal-smart-button-info',
1590        'sort'   => 0,
1591        'fields' => [
1592            [
1593                'name'          => 'title',
1594                'title'         => 'admin::app.configuration.index.sales.payment-methods.title',
1595                'type'          => 'text',
1596                'depends'       => 'active:1',
1597                'validation'    => 'required_if:active,1',
1598                'channel_based' => true,
1599                'locale_based'  => true,
1600            ], [
1601                'name'          => 'description',
1602                'title'         => 'admin::app.configuration.index.sales.payment-methods.description',
1603                'type'          => 'textarea',
1604                'channel_based' => true,
1605                'locale_based'  => true,
1606            ], [
1607                'name'          => 'image',
1608                'title'         => 'admin::app.configuration.index.sales.payment-methods.logo',
1609                'type'          => 'image',
1610                'info'          => 'admin::app.configuration.index.sales.payment-methods.logo-information',
1611                'channel_based' => false,
1612                'locale_based'  => false,
1613                'validation'    => 'mimes:bmp,jpeg,jpg,png,webp',
1614            ], [
1615                'name'          => 'client_id',
1616                'title'         => 'admin::app.configuration.index.sales.payment-methods.client-id',
1617                'info'          => 'admin::app.configuration.index.sales.payment-methods.client-id-info',
1618                'type'          => 'text',
1619                'depends'       => 'active:1',
1620                'validation'    => 'required_if:active,1',
1621                'channel_based' => true,
1622                'locale_based'  => false,
1623            ], [
1624                'name'          => 'client_secret',
1625                'title'         => 'admin::app.configuration.index.sales.payment-methods.client-secret',
1626                'info'          => 'admin::app.configuration.index.sales.payment-methods.client-secret-info',
1627                'type'          => 'text',
1628                'depends'       => 'active:1',
1629                'validation'    => 'required_if:active,1',
1630                'channel_based' => true,
1631                'locale_based'  => false,
1632            ], [
1633                'name'          => 'accepted_currencies',
1634                'title'         => 'admin::app.configuration.index.sales.payment-methods.accepted-currencies',
1635                'info'          => 'admin::app.configuration.index.sales.payment-methods.accepted-currencies-info',
1636                'type'          => 'text',
1637                'depends'       => 'active:1',
1638                'validation'    => 'required_if:active,1',
1639                'channel_based' => true,
1640                'locale_based'  => false,
1641            ], [
1642                'name'          => 'active',
1643                'title'         => 'admin::app.configuration.index.sales.payment-methods.status',
1644                'type'          => 'boolean',
1645                'channel_based' => true,
1646                'locale_based'  => false,
1647            ], [
1648                'name'          => 'sandbox',
1649                'title'         => 'admin::app.configuration.index.sales.payment-methods.sandbox',
1650                'type'          => 'boolean',
1651                'channel_based' => true,
1652                'locale_based'  => false,
1653            ], [
1654                'name'    => 'sort',
1655                'title'   => 'admin::app.configuration.index.sales.payment-methods.sort-order',
1656                'type'    => 'select',
1657                'options' => [
1658                    [
1659                        'title' => '1',
1660                        'value' => 1,
1661                    ], [
1662                        'title' => '2',
1663                        'value' => 2,
1664                    ], [
1665                        'title' => '3',
1666                        'value' => 3,
1667                    ], [
1668                        'title' => '4',
1669                        'value' => 4,
1670                    ],
1671                ],
1672            ],
1673        ],
1674    ], [
1675        'key'  => 'sales.order_settings',
1676        'name' => 'admin::app.configuration.index.sales.order-settings.title',
1677        'info' => 'admin::app.configuration.index.sales.order-settings.info',
1678        'icon' => 'settings/order.svg',
1679        'sort' => 4,
1680    ], [
1681        'key'    => 'sales.order_settings.order_number',
1682        'name'   => 'admin::app.configuration.index.sales.order-settings.order-number.title',
1683        'info'   => 'admin::app.configuration.index.sales.order-settings.order-number.info',
1684        'sort'   => 0,
1685        'fields' => [
1686            [
1687                'name'          => 'order_number_prefix',
1688                'title'         => 'admin::app.configuration.index.sales.order-settings.order-number.prefix',
1689                'type'          => 'text',
1690                'validation'    => false,
1691                'channel_based' => true,
1692            ], [
1693                'name'          => 'order_number_length',
1694                'title'         => 'admin::app.configuration.index.sales.order-settings.order-number.length',
1695                'type'          => 'text',
1696                'validation'    => 'numeric',
1697                'channel_based' => true,
1698            ], [
1699                'name'          => 'order_number_suffix',
1700                'title'         => 'admin::app.configuration.index.sales.order-settings.order-number.suffix',
1701                'type'          => 'text',
1702                'validation'    => false,
1703                'channel_based' => true,
1704            ], [
1705                'name'          => 'order_number_generator',
1706                'title'         => 'admin::app.configuration.index.sales.order-settings.order-number.generator',
1707                'type'          => 'text',
1708                'validation'    => false,
1709                'channel_based' => true,
1710            ],
1711        ],
1712    ], [
1713        'key'    => 'sales.order_settings.minimum_order',
1714        'name'   => 'admin::app.configuration.index.sales.order-settings.minimum-order.title',
1715        'info'   => 'admin::app.configuration.index.sales.order-settings.minimum-order.info',
1716        'sort'   => 1,
1717        'fields' => [
1718            [
1719                'name'          => 'enable',
1720                'title'         => 'admin::app.configuration.index.sales.order-settings.minimum-order.enable',
1721                'type'          => 'boolean',
1722            ], [
1723                'name'          => 'minimum_order_amount',
1724                'title'         => 'admin::app.configuration.index.sales.order-settings.minimum-order.minimum-order-amount',
1725                'type'          => 'number',
1726                'validation'    => 'required_if:enable,1|numeric',
1727                'depends'       => 'enable:1',
1728                'channel_based' => true,
1729            ], [
1730                'name'          => 'include_discount_amount',
1731                'title'         => 'admin::app.configuration.index.sales.order-settings.minimum-order.include-discount-amount',
1732                'type'          => 'boolean',
1733                'depends'       => 'enable:1',
1734            ], [
1735                'name'          => 'include_tax_to_amount',
1736                'title'         => 'admin::app.configuration.index.sales.order-settings.minimum-order.include-tax-amount',
1737                'type'          => 'boolean',
1738                'depends'       => 'enable:1',
1739            ], [
1740                'name'          => 'description',
1741                'title'         => 'admin::app.configuration.index.sales.order-settings.minimum-order.description',
1742                'type'          => 'textarea',
1743                'depends'       => 'enable:1',
1744                'channel_based' => true,
1745            ],
1746        ],
1747    ], [
1748        'key'    => 'sales.order_settings.reorder',
1749        'name'   => 'admin::app.configuration.index.sales.order-settings.reorder.title',
1750        'info'   => 'admin::app.configuration.index.sales.order-settings.reorder.info',
1751        'sort'   => 2,
1752        'fields' => [
1753            [
1754                'name'    => 'admin',
1755                'title'   => 'admin::app.configuration.index.sales.order-settings.reorder.admin-reorder',
1756                'info'    => 'admin::app.configuration.index.sales.order-settings.reorder.admin-reorder-info',
1757                'type'    => 'boolean',
1758                'default' => true,
1759            ], [
1760                'name'    => 'shop',
1761                'title'   => 'admin::app.configuration.index.sales.order-settings.reorder.shop-reorder',
1762                'info'    => 'admin::app.configuration.index.sales.order-settings.reorder.shop-reorder-info',
1763                'type'    => 'boolean',
1764                'default' => true,
1765            ],
1766        ],
1767    ], [
1768        'key'  => 'sales.invoice_settings',
1769        'name' => 'admin::app.configuration.index.sales.invoice-settings.title',
1770        'info' => 'admin::app.configuration.index.sales.invoice-settings.info',
1771        'icon' => 'settings/invoice.svg',
1772        'sort' => 5,
1773    ], [
1774        'key'    => 'sales.invoice_settings.invoice_number',
1775        'name'   => 'admin::app.configuration.index.sales.invoice-settings.invoice-number.title',
1776        'info'   => 'admin::app.configuration.index.sales.invoice-settings.invoice-number.info',
1777        'sort'   => 0,
1778        'fields' => [
1779            [
1780                'name'          => 'invoice_number_prefix',
1781                'title'         => 'admin::app.configuration.index.sales.invoice-settings.invoice-number.prefix',
1782                'type'          => 'text',
1783                'validation'    => false,
1784                'channel_based' => true,
1785                'locale_based'  => true,
1786            ], [
1787                'name'          => 'invoice_number_length',
1788                'title'         => 'admin::app.configuration.index.sales.invoice-settings.invoice-number.length',
1789                'type'          => 'text',
1790                'validation'    => 'numeric',
1791                'channel_based' => true,
1792                'locale_based'  => true,
1793            ], [
1794                'name'          => 'invoice_number_suffix',
1795                'title'         => 'admin::app.configuration.index.sales.invoice-settings.invoice-number.suffix',
1796                'type'          => 'text',
1797                'validation'    => false,
1798                'channel_based' => true,
1799                'locale_based'  => true,
1800            ], [
1801                'name'          => 'invoice_number_generator_class',
1802                'title'         => 'admin::app.configuration.index.sales.invoice-settings.invoice-number.generator',
1803                'type'          => 'text',
1804                'validation'    => false,
1805                'channel_based' => true,
1806                'locale_based'  => true,
1807            ],
1808        ],
1809    ], [
1810        'key'    => 'sales.invoice_settings.payment_terms',
1811        'name'   => 'admin::app.configuration.index.sales.invoice-settings.payment-terms.title',
1812        'info'   => 'admin::app.configuration.index.sales.invoice-settings.payment-terms.info',
1813        'sort'   => 1,
1814        'fields' => [
1815            [
1816                'name'          => 'due_duration',
1817                'title'         => 'admin::app.configuration.index.sales.invoice-settings.payment-terms.due-duration',
1818                'type'          => 'text',
1819                'validation'    => 'numeric',
1820                'channel_based' => true,
1821            ],
1822        ],
1823    ], [
1824        'key'    => 'sales.invoice_settings.pdf_print_outs',
1825        'name'   => 'admin::app.configuration.index.sales.invoice-settings.pdf-print-outs.title',
1826        'info'   => 'admin::app.configuration.index.sales.invoice-settings.pdf-print-outs.info',
1827        'sort'   => 2,
1828        'fields' => [
1829            [
1830                'name'    => 'invoice_id',
1831                'title'   => 'admin::app.configuration.index.sales.invoice-settings.pdf-print-outs.invoice-id-title',
1832                'info'    => 'admin::app.configuration.index.sales.invoice-settings.pdf-print-outs.invoice-id-info',
1833                'type'    => 'boolean',
1834                'default' => true,
1835            ], [
1836                'name'    => 'order_id',
1837                'title'   => 'admin::app.configuration.index.sales.invoice-settings.pdf-print-outs.order-id-title',
1838                'info'    => 'admin::app.configuration.index.sales.invoice-settings.pdf-print-outs.order-id-info',
1839                'type'    => 'boolean',
1840                'default' => true,
1841            ], [
1842                'name'          => 'logo',
1843                'title'         => 'admin::app.configuration.index.sales.invoice-settings.pdf-print-outs.logo',
1844                'type'          => 'image',
1845                'validation'    => 'mimes:bmp,jpeg,jpg,png,webp',
1846                'channel_based' => true,
1847            ],
1848        ],
1849    ], [
1850        'key'    => 'sales.invoice_settings.invoice_reminders',
1851        'name'   => 'admin::app.configuration.index.sales.invoice-settings.invoice-reminders.title',
1852        'info'   => 'admin::app.configuration.index.sales.invoice-settings.invoice-reminders.info',
1853        'sort'   => 3,
1854        'fields' => [
1855            [
1856                'name'          => 'reminders_limit',
1857                'title'         => 'admin::app.configuration.index.sales.invoice-settings.invoice-reminders.maximum-limit-of-reminders',
1858                'type'          => 'text',
1859                'validation'    => 'numeric',
1860                'channel_based' => true,
1861            ], [
1862                'name'    => 'interval_between_reminders',
1863                'title'   => 'admin::app.configuration.index.sales.invoice-settings.invoice-reminders.interval-between-reminders',
1864                'type'    => 'select',
1865                'options' => [
1866                    [
1867                        'title' => '1 day',
1868                        'value' => 'P1D',
1869                    ], [
1870                        'title' => '2 days',
1871                        'value' => 'P2D',
1872                    ], [
1873                        'title' => '3 days',
1874                        'value' => 'P3D',
1875                    ], [
1876                        'title' => '4 days',
1877                        'value' => 'P4D',
1878                    ], [
1879                        'title' => '5 days',
1880                        'value' => 'P4D',
1881                    ], [
1882                        'title' => '6 days',
1883                        'value' => 'P4D',
1884                    ], [
1885                        'title' => '7 days',
1886                        'value' => 'P4D',
1887                    ], [
1888                        'title' => '2 weeks',
1889                        'value' => 'P2W',
1890                    ], [
1891                        'title' => '3 weeks',
1892                        'value' => 'P3W',
1893                    ], [
1894                        'title' => '4 weeks',
1895                        'value' => 'P4W',
1896                    ],
1897                ],
1898            ],
1899        ],
1900    ], [
1901        'key'  => 'sales.taxes',
1902        'name' => 'admin::app.configuration.index.sales.taxes.title',
1903        'info' => 'admin::app.configuration.index.sales.taxes.title-info',
1904        'icon' => 'settings/tax.svg',
1905        'sort' => 6,
1906    ], [
1907        'key'    => 'sales.taxes.categories',
1908        'name'   => 'admin::app.configuration.index.sales.taxes.categories.title',
1909        'info'   => 'admin::app.configuration.index.sales.taxes.categories.title-info',
1910        'sort'   => 1,
1911        'fields' => [
1912            [
1913                'name'    => 'shipping',
1914                'title'   => 'admin::app.configuration.index.sales.taxes.categories.shipping',
1915                'type'    => 'select',
1916                'default' => 0,
1917                'options' => 'Webkul\Tax\Repositories\TaxCategoryRepository@getConfigOptions',
1918            ], [
1919                'name'    => 'product',
1920                'title'   => 'admin::app.configuration.index.sales.taxes.categories.product',
1921                'type'    => 'select',
1922                'default' => 0,
1923                'options' => 'Webkul\Tax\Repositories\TaxCategoryRepository@getConfigOptions',
1924            ],
1925        ],
1926    ], [
1927        'key'    => 'sales.taxes.calculation',
1928        'name'   => 'admin::app.configuration.index.sales.taxes.calculation.title',
1929        'info'   => 'admin::app.configuration.index.sales.taxes.calculation.title-info',
1930        'sort'   => 2,
1931        'fields' => [
1932            [
1933                'name'    => 'based_on',
1934                'title'   => 'admin::app.configuration.index.sales.taxes.calculation.based-on',
1935                'type'    => 'select',
1936                'default' => 'shipping_address',
1937                'options' => [
1938                    [
1939                        'title' => 'admin::app.configuration.index.sales.taxes.calculation.shipping-address',
1940                        'value' => 'shipping_address',
1941                    ], [
1942                        'title' => 'admin::app.configuration.index.sales.taxes.calculation.billing-address',
1943                        'value' => 'billing_address',
1944                    ], [
1945                        'title' => 'admin::app.configuration.index.sales.taxes.calculation.shipping-origin',
1946                        'value' => 'shipping_origin',
1947                    ],
1948                ],
1949            ], [
1950                'name'    => 'product_prices',
1951                'title'   => 'admin::app.configuration.index.sales.taxes.calculation.product-prices',
1952                'type'    => 'select',
1953                'default' => 'excluding_tax',
1954                'options' => [
1955                    [
1956                        'title' => 'admin::app.configuration.index.sales.taxes.calculation.excluding-tax',
1957                        'value' => 'excluding_tax',
1958                    ], [
1959                        'title' => 'admin::app.configuration.index.sales.taxes.calculation.including-tax',
1960                        'value' => 'including_tax',
1961                    ],
1962                ],
1963            ], [
1964                'name'    => 'shipping_prices',
1965                'title'   => 'admin::app.configuration.index.sales.taxes.calculation.shipping-prices',
1966                'type'    => 'select',
1967                'default' => 'excluding_tax',
1968                'options' => [
1969                    [
1970                        'title' => 'admin::app.configuration.index.sales.taxes.calculation.excluding-tax',
1971                        'value' => 'excluding_tax',
1972                    ], [
1973                        'title' => 'admin::app.configuration.index.sales.taxes.calculation.including-tax',
1974                        'value' => 'including_tax',
1975                    ],
1976                ],
1977            ],
1978        ],
1979    ], [
1980        'key'    => 'sales.taxes.default_destination_calculation',
1981        'name'   => 'admin::app.configuration.index.sales.taxes.default-destination-calculation.title',
1982        'info'   => 'admin::app.configuration.index.sales.taxes.default-destination-calculation.title-info',
1983        'sort'   => 3,
1984        'fields' => [
1985            [
1986                'name'    => 'country',
1987                'title'   => 'admin::app.configuration.index.sales.taxes.default-destination-calculation.default-country',
1988                'type'    => 'country',
1989                'default' => '',
1990            ], [
1991                'name'    => 'state',
1992                'title'   => 'admin::app.configuration.index.sales.taxes.default-destination-calculation.default-state',
1993                'type'    => 'state',
1994                'default' => '',
1995            ], [
1996                'name'    => 'post_code',
1997                'title'   => 'admin::app.configuration.index.sales.taxes.default-destination-calculation.default-post-code',
1998                'type'    => 'text',
1999                'default' => '',
2000            ],
2001        ],
2002    ], [
2003        'key'    => 'sales.taxes.shopping_cart',
2004        'name'   => 'admin::app.configuration.index.sales.taxes.shopping-cart.title',
2005        'info'   => 'admin::app.configuration.index.sales.taxes.shopping-cart.title-info',
2006        'sort'   => 4,
2007        'fields' => [
2008            [
2009                'name'    => 'display_prices',
2010                'title'   => 'admin::app.configuration.index.sales.taxes.shopping-cart.display-prices',
2011                'type'    => 'select',
2012                'default' => 'excluding_tax',
2013                'options' => [
2014                    [
2015                        'title' => 'admin::app.configuration.index.sales.taxes.shopping-cart.excluding-tax',
2016                        'value' => 'excluding_tax',
2017                    ], [
2018                        'title' => 'admin::app.configuration.index.sales.taxes.shopping-cart.including-tax',
2019                        'value' => 'including_tax',
2020                    ], [
2021                        'title' => 'admin::app.configuration.index.sales.taxes.shopping-cart.both',
2022                        'value' => 'both',
2023                    ],
2024                ],
2025            ], [
2026                'name'    => 'display_subtotal',
2027                'title'   => 'admin::app.configuration.index.sales.taxes.shopping-cart.display-subtotal',
2028                'type'    => 'select',
2029                'default' => 'excluding_tax',
2030                'options' => [
2031                    [
2032                        'title' => 'admin::app.configuration.index.sales.taxes.shopping-cart.excluding-tax',
2033                        'value' => 'excluding_tax',
2034                    ], [
2035                        'title' => 'admin::app.configuration.index.sales.taxes.shopping-cart.including-tax',
2036                        'value' => 'including_tax',
2037                    ], [
2038                        'title' => 'admin::app.configuration.index.sales.taxes.shopping-cart.both',
2039                        'value' => 'both',
2040                    ],
2041                ],
2042            ], [
2043                'name'    => 'display_shipping_amount',
2044                'title'   => 'admin::app.configuration.index.sales.taxes.shopping-cart.display-shipping-amount',
2045                'type'    => 'select',
2046                'default' => 'excluding_tax',
2047                'options' => [
2048                    [
2049                        'title' => 'admin::app.configuration.index.sales.taxes.shopping-cart.excluding-tax',
2050                        'value' => 'excluding_tax',
2051                    ], [
2052                        'title' => 'admin::app.configuration.index.sales.taxes.shopping-cart.including-tax',
2053                        'value' => 'including_tax',
2054                    ], [
2055                        'title' => 'admin::app.configuration.index.sales.taxes.shopping-cart.both',
2056                        'value' => 'both',
2057                    ],
2058                ],
2059            ],
2060        ],
2061    ], [
2062        'key'    => 'sales.taxes.sales',
2063        'name'   => 'admin::app.configuration.index.sales.taxes.sales.title',
2064        'info'   => 'admin::app.configuration.index.sales.taxes.sales.title-info',
2065        'sort'   => 4,
2066        'fields' => [
2067            [
2068                'name'    => 'display_prices',
2069                'title'   => 'admin::app.configuration.index.sales.taxes.sales.display-prices',
2070                'type'    => 'select',
2071                'default' => 'excluding_tax',
2072                'options' => [
2073                    [
2074                        'title' => 'admin::app.configuration.index.sales.taxes.sales.excluding-tax',
2075                        'value' => 'excluding_tax',
2076                    ], [
2077                        'title' => 'admin::app.configuration.index.sales.taxes.sales.including-tax',
2078                        'value' => 'including_tax',
2079                    ], [
2080                        'title' => 'admin::app.configuration.index.sales.taxes.sales.both',
2081                        'value' => 'both',
2082                    ],
2083                ],
2084            ], [
2085                'name'    => 'display_subtotal',
2086                'title'   => 'admin::app.configuration.index.sales.taxes.sales.display-subtotal',
2087                'type'    => 'select',
2088                'default' => 'excluding_tax',
2089                'options' => [
2090                    [
2091                        'title' => 'admin::app.configuration.index.sales.taxes.sales.excluding-tax',
2092                        'value' => 'excluding_tax',
2093                    ], [
2094                        'title' => 'admin::app.configuration.index.sales.taxes.sales.including-tax',
2095                        'value' => 'including_tax',
2096                    ], [
2097                        'title' => 'admin::app.configuration.index.sales.taxes.sales.both',
2098                        'value' => 'both',
2099                    ],
2100                ],
2101            ], [
2102                'name'    => 'display_shipping_amount',
2103                'title'   => 'admin::app.configuration.index.sales.taxes.sales.display-shipping-amount',
2104                'type'    => 'select',
2105                'default' => 'excluding_tax',
2106                'options' => [
2107                    [
2108                        'title' => 'admin::app.configuration.index.sales.taxes.sales.excluding-tax',
2109                        'value' => 'excluding_tax',
2110                    ], [
2111                        'title' => 'admin::app.configuration.index.sales.taxes.sales.including-tax',
2112                        'value' => 'including_tax',
2113                    ], [
2114                        'title' => 'admin::app.configuration.index.sales.taxes.sales.both',
2115                        'value' => 'both',
2116                    ],
2117                ],
2118            ],
2119        ],
2120    ], [
2121        'key'  => 'sales.checkout',
2122        'name' => 'admin::app.configuration.index.sales.checkout.title',
2123        'info' => 'admin::app.configuration.index.sales.checkout.info',
2124        'icon' => 'settings/checkout.svg',
2125        'sort' => 7,
2126    ], [
2127        'key'    => 'sales.checkout.shopping_cart',
2128        'name'   => 'admin::app.configuration.index.sales.checkout.shopping-cart.title',
2129        'info'   => 'admin::app.configuration.index.sales.checkout.shopping-cart.info',
2130        'sort'   => 1,
2131        'fields' => [
2132            [
2133                'name'    => 'allow_guest_checkout',
2134                'title'   => 'admin::app.configuration.index.sales.checkout.shopping-cart.guest-checkout',
2135                'info'    => 'admin::app.configuration.index.sales.checkout.shopping-cart.guest-checkout-info',
2136                'type'    => 'boolean',
2137                'default' => 1,
2138            ], [
2139                'name'    => 'cart_page',
2140                'title'   => 'admin::app.configuration.index.sales.checkout.shopping-cart.cart-page',
2141                'info'    => 'admin::app.configuration.index.sales.checkout.shopping-cart.cart-page-info',
2142                'type'    => 'boolean',
2143                'default' => 2,
2144            ], [
2145                'name'    => 'cross_sell',
2146                'title'   => 'admin::app.configuration.index.sales.checkout.shopping-cart.cross-sell',
2147                'info'    => 'admin::app.configuration.index.sales.checkout.shopping-cart.cross-sell-info',
2148                'type'    => 'boolean',
2149                'default' => 3,
2150            ], [
2151                'name'    => 'estimate_shipping',
2152                'title'   => 'admin::app.configuration.index.sales.checkout.shopping-cart.estimate-shipping',
2153                'info'    => 'admin::app.configuration.index.sales.checkout.shopping-cart.estimate-shipping-info',
2154                'type'    => 'boolean',
2155                'default' => 4,
2156            ],
2157        ],
2158    ], [
2159        'key'    => 'sales.checkout.my_cart',
2160        'name'   => 'admin::app.configuration.index.sales.checkout.my-cart.title',
2161        'info'   => 'admin::app.configuration.index.sales.checkout.my-cart.info',
2162        'sort'   => 2,
2163        'fields' => [
2164            [
2165                'name'    => 'summary',
2166                'title'   => 'admin::app.configuration.index.sales.checkout.my-cart.summary',
2167                'type'    => 'select',
2168                'default' => 'display_number_of_items_in_cart',
2169                'options' => [
2170                    [
2171                        'title' => 'admin::app.configuration.index.sales.checkout.my-cart.display-item-quantities',
2172                        'value' => 'display_item_quantity',
2173                    ], [
2174                        'title' => 'admin::app.configuration.index.sales.checkout.my-cart.display-number-in-cart',
2175                        'value' => 'display_number_of_items_in_cart',
2176                    ],
2177                ],
2178            ],
2179        ],
2180    ], [
2181        'key'    => 'sales.checkout.mini_cart',
2182        'name'   => 'admin::app.configuration.index.sales.checkout.mini-cart.title',
2183        'info'   => 'admin::app.configuration.index.sales.checkout.mini-cart.info',
2184        'sort'   => 3,
2185        'fields' => [
2186            [
2187                'name'    => 'display_mini_cart',
2188                'title'   => 'admin::app.configuration.index.sales.checkout.mini-cart.display-mini-cart',
2189                'type'    => 'boolean',
2190                'default' => 1,
2191            ], [
2192                'name'    => 'offer_info',
2193                'title'   => 'admin::app.configuration.index.sales.checkout.mini-cart.mini-cart-offer-info',
2194                'type'    => 'text',
2195                'default' => 'Get Up To 30% OFF on your 1st order',
2196            ],
2197        ],
2198    ],
2199];